/**
 * Copyright (c) 2010 Yahoo! Inc. All rights reserved.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License. See accompanying LICENSE file.
 */
package org.apache.oozie.client;

import java.util.Date;

/**
 * Bean that represents a SLA event
 */
public interface SLAEvent {

    /**
     * Defines the possible status of an SLA events or Job status for SLA events.
     */
    public static enum Status {
        CREATED, STARTED, SUCCEEDED, KILLED, FAILED
    }

    /**
     * Defines the possible status of an SLA events.
     */
    public static enum SlaAppType {
        COORDINATOR_ACTION, COORDINATOR_JOB, WORKFLOW_JOB, WORKFLOW_ACTION
    }

    public long getEvent_id();

    public String getSlaId();

    public SlaAppType getAppType();

    public String getAppName();

    public String getUser();

    public String getGroupName();

    public String getParentClientId();

    public String getParentSlaId();

    public Date getExpectedStart();

    public Date getExpectedEnd();

    public Date getStatusTimestamp();

    public String getNotificationMsg();

    public String getAlertContact();

    public String getDevContact();

    public String getQaContact();

    public String getSeContact();

    public String getAlertFrequency();

    public String getAlertPercentage();

    public String getUpstreamApps();

    public Status getJobStatus();

    public String getJobData();

}
